<template>
    <div>
        <div class="loginTop">
            <div class="logo" @click="$router.push('/')">
                <img src="../../assets/logo.png" alt="">
            </div>
            <div>{{title}}</div>
            <div>
                <slot name="right"></slot>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name: "loginTop",
        props: ['title']
    }
</script>

<style lang="less">
    .loginTop {
        height: 12.889vw;
        background-color: white;
        display: flex;

        div {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 4.444vw;
        }
    }
</style>